package com.dji.sample.wayline.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 飞行人员计划表
 * </p>
 *
 * @author yjt
 * @since 2022-09-14
 */
@TableName("flight_plan_info")
@Data
public class FlightPlanInfoEntity extends Model<FlightPlanInfoEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long orgId;
    private String  type;
    /**
     * 日期
     */
    private String planDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 机型/架数
     */
    private String deviceNos;

    /**
     * 飞行指挥员
     */
    private String pilotCommand;

    /**
     * 起降场
     */
    private String takeOffArea;

    /**
     * 任务性质
     */
    private String taskNature;

    /**
     * 航线
     */
    private String route;

    /**
     * 飞行高度
     */
    private String flightAltitude;

    /**
     * 备降场
     */
    private String alternateAerodrome;

    /**
     * 计划批复联系人
     */
    private String planApprovalContact;

    /**
     * 飞行现场联系人
     */
    private String flightSiteContact;

    /**
     * 状态
     */
    private Integer status;

    private String createBy;

    private Date createTime;

    private Date updateTime;

    private String orgCode;

    private String pilotIds;

    @TableField(exist = false)
    private String pilotName;

}
